package GameEngine;

/**
 * This class handles the status of the game.
 * The class board create an object of this class.
 */

@SuppressWarnings("serial")
public class Status implements java.io.Serializable {

	private int value = GAME_OFF;
	private int gameMode;
	//static -----------------------------------
	
	public static final int GAME_OFF     = 1;
	public static final int GAME_ON		 = 2;
	public static final int BLACK_WINS	 = 3;
	public static final int WHITE_WINS	 = 4;
	public static final int DRAW		 = 5;
	public static final int GAME_PVP     = 6;
	public static final int GAME_PVC     = 7;
	public static final int GAME_CVC     = 8;
	
	public static final int ILLEGAL_MOVE = 98;
	public static final int ERROR		 = 99;
	
	//----------------------------------------

    /**
     * This constructor create an object of the class Status
     * @param value Sets the value of the object
     */
	public Status(int value){
		this.value = value;
	}

    /**
     * Getter-method to get out the value of the status
     * @return value
     */
	public int value() {
		return value;
	}

    /**
     * Setter-method to change the status of the object
     * @param value
     */
	public void value(int value){
		this.value = value;
	}
	
	public void setGameMode(int mode){
		this.gameMode = mode;
	}
	
	public int getGameMode(){
		return gameMode;
	}

}